<%@ include file="/WEB-INF/jsp/includes.jsp" %>

<table>
    <tr><td><b><spring:message code="subject" /></b>:</td><td><c:out value="${message.subject}" /></td></tr>
    <tr><td><b><spring:message code="from" /></b>:</td><td><fmt:formatDate value="${message.creationTime}" pattern="dd.MM.yyyy HH:mm" /></td></tr>
    <tr><td><b><spring:message code="attachments" /></b>:</td><td><c:out value="${message.attachments}" /></td></tr>
    <tr><td><b><spring:message code="creator" /></b>:</td><td><c:out value="${message.creator.person}" /></td></tr>
    <tr>
        <td><b><spring:message code="recepients" /></b>:</td>
        <td>
            <table>
                <c:forEach items="${message.recepients}" var="r">
                    <tr><td><c:out value="${r.messageLabel}" /></td></tr>
                </c:forEach>
            </table>            
        </td>        
    </tr>
    <tr>
        <td><b><spring:message code="failed" /></b>:</td>
        <td>
            <table>
                <c:forEach items="${message.failed}" var="f">
                    <tr><td><c:out value="${f.messageLabel}" /></td></tr>
                </c:forEach>
            </table>
        </td>
    </tr>
    <tr><a href="?messageId=<c:out value="${message.id}" />&resubmit=true"><spring:message code="resubmit" /></a></tr>
</table>
